/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       bitmap_layer_cache_window.h

	$Header: /game/bitmap_layer_cache_window.h $

	$NoKeywords: $

 ************************************************************************/
#ifndef BITMAP_LAYER_CACHE_WINDOW_H_INCLUDED
#define BITMAP_LAYER_CACHE_WINDOW_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "bitmap_layer_cache_window_ptr.h"
#include "bitmap_layer_ptr.h"
#include "bitmap_layer_window.h"

// --------------------------------------------------------------
// layer window, but with a cache pointer
// --------------------------------------------------------------
class t_bitmap_layer_cache_window : public t_bitmap_layer_window
{
public:
	t_bitmap_layer_cache_window( t_bitmap_layer_ptr const& bitmap, t_screen_point point, 
		                         t_window* parent = 0, bool use_offset = true );

	void set_bitmap( t_bitmap_layer_ptr const& bitmap, bool use_offset = false );
	void set_bitmap( t_bitmap_layer_ptr const& bitmap, t_screen_point point );
protected:
	t_bitmap_layer_ptr m_bitmap_ptr;
};

#endif // BITMAP_LAYER_CACHE_WINDOW_H_INCLUDED
